<?php 
ob_start();
session_start();
require_once "classTin.php";
$t = new tin;
//$lang='vi';
if(isset($_GET['p'])== true) $p= $_GET['p'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vietnam Food Step</title>
<link href="css/mstran_css.css" rel="stylesheet" type="text/css" />
<link href="css/jqueryslidemenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="script/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="script/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.cookie.js"></script>
<script type="text/javascript" src="script/jqueryslidemenu.js"></script>
<script type="text/javascript" src="script/swfobject.js"></script>
<script type="text/javascript" src="Scripts/jquery.corner.js"></script>
<script type="text/javascript" src="Scripts/quangcao/quangcao.js"></script>
<!-----------------------------------NGON NGU----------------------------------->
<script>
function chuyenngonngu(lang){
	//document.cookie="lang=" + lang ;
	$.cookie("lang",lang,{ expires: 7});
	$.cookie("idLT",0,{ expires: -1 });
	$.cookie("idTL",0,{ expires: -1 });

	//window.location.reload();
	document.location = "index.php";
}
</script>
<!-----------------------------------NGON NGU----------------------------------->

<!-----------------------------------QUANG CAO----------------------------------->
<SCRIPT type=text/javascript>

var slideTime = 700;
var floatAtBottom = false;

function pepsi_floating_init()
{
	xMoveTo('floating_banner_right', 887 - (1024-screen.width), 0);

	winOnResize(); // set initial position
	xAddEventListener(window, 'resize', winOnResize, false);
	xAddEventListener(window, 'scroll', winOnScroll, false);
}
function winOnResize() {
	checkScreenWidth();
	winOnScroll(); // initial slide
}
function winOnScroll() {
  var y = xScrollTop();
  if (floatAtBottom) {
    y += xClientHeight() - xHeight('floating_banner_left');
  }
  
  xSlideTo('floating_banner_left', (screen.width - (800-775) - 950)/2-115 , y, slideTime);  // Chỉnh khoảng cách bên trái
  xSlideTo('floating_banner_right', (screen.width - (800-795) + 970)/2, y, slideTime); // // Chỉnh khoảng cách bên Phải
}
	
function checkScreenWidth()
{
	if( document.body.clientWidth < 926 )
	{	
		document.getElementById('floating_banner_left').style.display = 'none';
		document.getElementById('floating_banner_right').style.display = 'none';
	}
	else
	{
		document.getElementById('floating_banner_left').style.display = '';
		document.getElementById('floating_banner_right').style.display = '';	
	}
}

</SCRIPT>
<!-----------------------------------QUANG CAO----------------------------------->

<!-----------------------------------THOI TIET----------------------------------->
<script type="text/javascript" src="script/jquery-menu.js"></script>
<script type="text/javascript" src="script/jquery-accordion.js"></script>
<script type="text/javascript" src="http://rilwis.googlecode.com/svn/trunk/weather.min.js"></script>  
<script language="JavaScript" type="text/javascript">
  $(document).ready(function(){
      initMenuGroup("xxx","only",false);

      initMenu("xxx","p1",300,true);
      initMenu("xxx","p2",300,false);
      initMenu("xxx","p3",300,false);
      initMenu("xxx","p4",300,false);
      initMenu("xxx","p5",300,false);
      initMenu("xxx","p6",300,false);

      bindMenuEvent("t1","p1","show");
      bindMenuEvent("t1","p1","hide");

      bindMenuEvent("t2","p2","show");
      bindMenuEvent("t2","p2","hide");

      bindMenuEvent("t3","p3","show");
      bindMenuEvent("t3","p3","hide");

      bindMenuEvent("t4","p4","show");
      bindMenuEvent("t4","p4","hide");

      bindMenuEvent("t5","p5","show");
      bindMenuEvent("t5","p5","hide");

      bindMenuEvent("t6","p6","show");
      bindMenuEvent("t6","p6","hide");

      initToggles("click","t1",new Array("t1","t2","t3","t4","t5","t6"),"tab_normal","tab_hover","tab_active");
  });
</script>
<!-----------------------------------THOI TIET----------------------------------->



</head>

<body onload="init()" >
<!----------------------------------QUANG CAO---------------------------------->
<div id="floating_banner_left" style="text-align:right; position:absolute; overflow:hidden; top: 0px; left: 0px; width: 105px; border: 0px solid #000;">
<div id="floating_banner_left_content">
    <a href="#" target="_blank"><img src="image/lien1.jpg" border="0" width="105px" alt="" /></a><br />
</div>
</div>

<div id="floating_banner_right" style="text-align:left; position:absolute; overflow:hidden; top: 0px; right: 0px; width: 105px; border: 0px solid #000;">
	<div id="floating_banner_right_content">
    <a href="#" target="_blank"><img src="image/lien2.jpg" border="0" width="105px" alt="" /></a><br />
</div>
</div>
<script>
	runQuery();
</script>
<script>
	pepsi_floating_init();
</script>
<!----------------------------------QUANG CAO---------------------------------->

<div id="loading" style="position:absolute; width:100%; text-align:center; top:450px;">
Đang nạp trang. Vui lòng đợi giây lát!<br />
<img src="image/loading1.gif" border=0>
</div> 
<script>
	var ld=(document.all);
	var ns4=document.layers;
	var ns6=document.getElementById&&!document.all;
	var ie4=document.all;
	if (ns4)
		ld=document.loading;
	else if (ns6)
		ld=document.getElementById("loading").style;
	else if (ie4)
		ld=document.all.loading.style;
	function init()
	{
		if(ns4){ld.visibility="hidden";}
		else if (ns6||ie4) ld.display="none";
	}
</script>

<div align="center">
<div id="bid_daddy">
		<div id="trai">
        <?php if($p=='') { ?>
		  <div id="trai_header"></div>
		  <div id="trai_adv_top"></div>
		  <div id="trai_menu"></div>
          <div id="trai_main_1_1">
              <div id="trai_hottour_1"></div>
              <div id="trai_detail_hottour"></div>
          </div>
          <div id="trai_main_1_2">
          		<div id="trai_hottour"></div>
          </div>
          <div id="trai_main_1_3">
		  	<div id="trai_hottour"></div>
          </div>
          <div id="trai_main_1_4">
          	<div id="trai_hottour"></div>
          </div>
          <div id="trai_main_1_5">
          	<div id="trai_hottour"></div>
          </div>
        <?php } else {?>
          <div id="trai_header"></div>
		  <div id="trai_adv_top"></div>
		  <div id="trai_menu"></div>
          <div id="trai_main_1_1">
              <div id="trai_hottour"></div>
              <div id="trai_detail_hottour"></div>
          </div>
        <?php } ?>
        
		</div><!--TRAI-->
        <div id="phai"></div><!--PHAI-->
<!----------------------------------------------------GIUA---------------------------------------------------->
    <div id="bkvtin">
      <div id="header">
	  		<div id="logo"></div><!--END DIV LOGO-->
            <div id="ngonngu">
            	<div id="lang">
                    <a href="index.php?lang=vi"><img src="admin/NgonNgu_vi.png" border="0" title="Việt Nam" /></a>
                    <a href="index.php?lang=en"><img onclick="chuyenngonngu('en')" src="admin/NgonNgu_en.png" border="0" title="English" /></a>
                </div>
                <div id="bogoc"><a href="admin/main.php"><img src="image/lang2.png" /></a></div>
            </div><!--END DIV LANG-->
      </div><!--END DIV HEADER--> <!--HEADER-->
      <div id="menu">
      		<?php include('menu.php'); ?> 	
      </div><!--MENU--><!--MENU-->
   	  <div id="adv_top">
       <div id="adv_flash">
           <div align="center">
                <div id="flashcontent">
                    <script type="text/javascript">
                        var so = new SWFObject("image/banner.swf", "mymovie", "950", "270", "8");
                        so.addParam("menu", "false");
                        so.write("flashcontent");
                    </script>
                </div>
            </div><!--END FLASH ADV TOP-->
        </div><!--ADV FLASH--> 
      </div><!--END DIV ADV TOP--><!--ADVERTISEMENT TOP-->
        <div id="main">
          <div id="main_1">
          		<?php if($p=='') { ?>
                <div id="main_1_1">
                  <div id="label_1_1"><img src="image/hot3.gif" name="img_bkv" width="60" height="13" id="img_bkv" /></div>
                  <div id="detail_1_1"><?php include('promotion.php'); ?></div>
                </div>
                <div id="main_1_2">
                  <div id="label_1_2"></div>
                  <div id="detail_1_2"><?php include('new_tour.php'); ?></div>
                </div>
                <div id="main_1_3">
                  <div id="label_1_3"><a href="index.php?p=con&idTL=25"><img src="image/label_thailand_bkvtin.jpg" /></a></div>
                  <div id="detail_1_3"><?php include('information_thailand.php'); ?></div>
                </div>
                <div id="main_1_4">
                  <div id="label_1_4"></div>
                  <div id="detail_1_4"><?php include('video.php'); ?></div>
                </div>
                <div id="main_1_5">
                  <div id="label_1_5"><a href="index.php?p=con&idTL=26"><img src="image/label_tintuc.png" /></a></div>
                  <div id="detail_1_5"><?php include('tintuc.php'); ?></div>
                </div>
               <?php } ?>
               <div id="chitiet">
                    <?php
						if($p=='search') include ('ketquatimkiem.php');
						elseif($p=='register') include ('formdangkythanhvien.php');
						elseif($p=='con') include ('loaitintrongtheloai.php');
						elseif($p=='cat') include ('tintrongloai.php');
						elseif($p=='details') include ('chitiettin.php');
						elseif($p=='detailsinside') include ('chitiettintrongnuoc.php');
						elseif($p=='contact') include ('lienhe.php');
						elseif($p=='contact_success') include ('lienhethanhcong.php');
						elseif($p=='tourcart') include ('hiengiohang_update.php');
						elseif($p=='booktour') include ('thanhtoan.php');
						elseif($p=='book_success') include ('thanhtoan_thanhcong.php');
					?>
              </div><!--END CHI TIET-->
          </div><!--END DIV MAIN 1-->
         
          <div id="main_2">
          		<div id="main_2_0">
                	<?php include('support.php'); ?>
                    <?php include('phone.php'); ?>
                </div>
          		<div id="trongnuoc">
                	<div id="trongnuoc_trai"></div>
                    <!--------------------------------------------------->
                    <div id="trongnuoc_phai">
                        <div id="label_tintrongnuoc"></div>
                        <div id="tintrongngoainuoc">
                            <?php include('tintrongnuoc.php'); ?>
                        </div><!--TIN TRONG NUOC-->
                        
                        <div id="search">
                        	<div id="label_search"></div>
                            <div id="adv_search">
                                <?php include ('formtimkiem.php'); ?>
                            </div>
                        </div><!--SEARCH-->
                    </div><!--END DIV TIN TRONG VA NGOAI NUOC PHAI-->
                    <!--------------------------------------------------->
                </div><!--END DIV TRONG NUOC-->
                <div id="main_2_1">
                	<div id="label_tygia"></div>
                    <div id="tygia">
                         <?php include('giavang.php'); ?>
                    </div><!--END DIV TY GIA-->
                </div><!--END DIV MAIN 2 1-->
                <div id="main_2_2">
               		<div id="label_thoitiet"></div>
                    <div id="weather">
                        <?php include('weather.php'); ?>
                    </div><!--END DIV WEATHER-->
                    <div id="counter">
                    	<span>Bạn là vị khách thứ</span><br/>
                      	<img src="counter/dem.php" />
                    </div>
                </div><!--END DIV MAIN 2 2-->
          </div><!--END DIV MAIN 2-->
        </div><!--END DIV MAIN CHINH-->
        <div id="menu_bottom"><?php include('menu.php'); ?></div>
        <div id="footer">
        	<div id="temp"></div>
        	<div id="trungtin">Copyright &copy; 2011 by <span class="bkvtin"><a href="ymsgr:sendim?bkvtin&amp;m=Hello BKVTIN">Trần Hữu Trung Tín</a></span></div>
        </div>
      </div><!--BKVTIN-->
<!----------------------------------------------------GIUA---------------------------------------------------->
</div><!--BIG DADDY-->
</div>
</body>
</html>
